# distribution
BS_TARGET				?= $(HOST_OS)

# http://mirrors.ustc.edu.cn/debian
# http://ftp.cn.debian.org/debian
# https://mirrors.tuna.tsinghua.edu.cn/debian
# http://mirrors.163.com/debian
BS_MIRROR_debian		= https://mirrors.tuna.tsinghua.edu.cn/debian
# FIXME: ubuntu only support amd64 and i386
# https://mirrors.tuna.tsinghua.edu.cn/ubuntu
# http://mirrors.163.com/ubuntu
BS_MIRROR_ubuntu		= https://mirrors.tuna.tsinghua.edu.cn/ubuntu

# release code name buster/bullseye/bookworm
# see https://mirrors.tuna.tsinghua.edu.cn/debian/dists/bookworm/main for BS_ARCH
BS_SUITE_debian			= bookworm
BS_SUITE_ubuntu			= jammy

BS_MIRROR				?= $(BS_MIRROR_$(HOST_OS))
BS_SUITE				?= $(BS_SUITE_$(HOST_OS))

KL_ARGS_bs				?= root=/dev/vda rw

RFS_IMG_DIR_bs			= $(EEL_OUT_DIR)/$(ARCH)/rootfs/bootstrap
RFS_IMG_BASE_bs			= rootfs.$(BS_TARGET).$(BS_SUITE)
RFS_IMAGE_bs			= $(RFS_IMG_DIR_bs)/$(RFS_IMG_BASE_bs).$(RFS_TYPE)

O_BS_DIR				= $(EEL_OUT_DIR)/$(ARCH)/rootfs/bootstrap/$(BS_TARGET)_$(BS_SUITE)

# fix ip issue
BS_POST_CMDS			?= echo root:123 | chpasswd; \
							echo 'set completion-ignore-case on' > ~/.inputrc; \
							apt install -y parted htop ncdu || true
